﻿using System;
using System.Collections.Generic;

namespace autoMessage.Entities;

/// <summary>
/// 定时任务调度表
/// </summary>
public partial class SysJob
{
    /// <summary>
    /// 任务ID
    /// </summary>
    public long JobId { get; set; }

    /// <summary>
    /// 任务名称
    /// </summary>
    public string JobName { get; set; } = null!;

    /// <summary>
    /// 任务组名
    /// </summary>
    public string JobGroup { get; set; } = null!;

    /// <summary>
    /// 调用目标字符串
    /// </summary>
    public string InvokeTarget { get; set; } = null!;

    /// <summary>
    /// cron执行表达式
    /// </summary>
    public string? CronExpression { get; set; }

    /// <summary>
    /// 计划执行错误策略（1立即执行 2执行一次 3放弃执行）
    /// </summary>
    public string? MisfirePolicy { get; set; }

    /// <summary>
    /// 是否并发执行（0允许 1禁止）
    /// </summary>
    public string? Concurrent { get; set; }

    /// <summary>
    /// 状态（0正常 1暂停）
    /// </summary>
    public string? Status { get; set; }

    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新者
    /// </summary>
    public string? UpdateBy { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 备注信息
    /// </summary>
    public string? Remark { get; set; }
}
